package cn.xyhelp.shop.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author violetfreesia
 * @since 2022-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 昵称
     */
    @TableField("name")
    private String name;

    /**
     * 头像地址
     */
    @TableField("avatar_url")
    private String avatarUrl;

    /**
     * 用户来源类型
     */
    @TableField("from_type")
    private Integer fromType;

    /**
     * 用户来源标识
     */
    @TableField("from_id")
    private Integer fromId;

    /**
     * 知行币数量
     */
    @TableField("coin")
    private Integer coin;

    /**
     * 偏爱门店
     */
    @TableField("prefer_store_id")
    private Integer preferStoreId;


}
